<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-TAG/platForm.tld" prefix="PF"%>
<div class="easyui-layout" data-options="fit:true">
	<div class="TableTitle" data-options="region:'north',border:false"
		style="text-align: left;">
		功能向导
	</div>
	<div data-options="region:'center'">
		<div class="demo-info" style="margin: 8px;">
			<div class="demo-tip icon-future-projects"></div>
			<div>
				${project.name}
				<p>
					${project.pcontent}
				</p>
				<p>
					<c:if test="${project.graphid!=null&&project.graphid!=''}">
						<img style="margin: 4px; width: 100%;max-width: 400px;"
							src="admin/FPloadfile.do?id=${project.graphid}">
					</c:if>
				</p>
			</div>
		</div>
		<div class="demo-info" style="margin: 8px;">
			<div class="demo-tip icon-settings"></div>
			<div>
				1.设置功能信息
				<form id="dom_formAppsetings">
					<input type="hidden" name="ids" value="${project.id}">
					<table>
						<tr>
							<td class="title">
								业务标志CODE:
							</td>
							<td colspan="3">
								<input type="text" class="easyui-validatebox"
									style="width: 360px;"
									data-options="required:true,validType:['english']"
									name="entity.appcode" value="${entity.appcode}">
							</td>
						</tr>
						<tr>
							<td class="title">
								CODE随机数:
							</td>
							<td colspan="3">
								<select name="entity.apprandom" val="${entity.apprandom}"
									class="easyui-validatebox" data-options="required:true">
									<option value="0">
										无
									</option>
									<option value="1">
										添加随机数
									</option>
								</select>
							</td>
						</tr>
						<tr>
							<td class="title">
								业务名称:
							</td>
							<td colspan="3">
								<input type="text" class="easyui-validatebox"
									style="width: 360px;" data-options="required:true"
									name="entity.appname" value="${entity.appname}">
							</td>
						</tr>
						<tr>
							<td class="title">
								机构类型:
							</td>
							<td colspan="3">
								<select name="entity.comtype" val="${entity.comtype}"
									class="easyui-validatebox" data-options="required:true">
									<option value="">
										请选择
									</option>
									<option value="com">
										com组织
									</option>
									<option value="org">
										org公司
									</option>
								</select>
							</td>
						</tr>
						<tr>
							<td class="title">
								机构CODE:
							</td>
							<td colspan="3">
								<input type="text" class="easyui-validatebox"
									style="width: 360px;"
									data-options="required:true,validType:['english']"
									name="entity.comcode" value="${entity.comcode}">
							</td>
						</tr>
						<tr>
							<td class="title">
								项目CODE:
							</td>
							<td colspan="3">
								<input type="text" class="easyui-validatebox"
									style="width: 360px;"
									data-options="required:true,validType:['english']"
									name="entity.procode" value="${entity.procode}">
							</td>
						</tr>
						<tr>
							<td class="title">
							</td>
							<td colspan="3">

							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		<div class="div_button" style="text-align: center; padding: 4px;">
			<a id="dom_add_submitFields" href="javascript:void(0)"
				iconCls="icon-save" class="easyui-linkbutton">继续</a>
		</div>
	</div>
</div>
<script type="text/javascript">
	var submitFormApp;
	$(function() {
		$.parser.parse();
		submitFormApp = $('#dom_formAppsetings').SubmitForm( {
			pageType : "1",
			grid : null,
			currentWindowId : null,
			noStreak : true
		})
		$('#dom_add_submitFields')
				.bind(
						'click',
						function() {
							submitFormApp
									.postSubmit(
											"admin/FarmCodeAppCommit.do",
											function(flag) {
												$.farm
														.openWindow( {
															id : 'winfarmcodepackage',
															width : 1000,
															height : 300,
															modal : true,
															url : "admin/FarmCodeGuide_parameter_view.do?ids=${project.id}",
															title : '生成参数'
														});
											});
						});
	})
	//-->
</script>